package com.liehacker.android.mapservice;

import com.liehacker.android.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class C24_63Search extends Activity{
	

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.c24_63search);
		
		((Button)findViewById(R.id.btn_c24_63View)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				double latitude = 37.519576;
				double longitude = 126.940245;
				
				String pos = String.format("geo:%f,%f?z=16", latitude, longitude);
				Uri uri = Uri.parse(pos);
				
				Intent intent = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(intent);
			}
			
		});
	}
	
}
